package com.open.launcher.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Shinelon on 2017/10/8.
 */

public class RequestDto<T> {
    private int code;
    private String errMsg;
    private T data;
    private List<T> list = new ArrayList<>();
    private String result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "RequestDto{" +
                "code=" + code +
                ", errMsg='" + errMsg + '\'' +
                ", data=" + data +
                ", list=" + list +
                ", result='" + result + '\'' +
                '}';
    }
}
